<?php

namespace app\modules\adminapi;

use app\models\Admin;
use yii\web\User;

/**
 * admin module definition class
 */
class Module extends \yii\base\Module
{
    /**
     * @inheritdoc
     */
    public $controllerNamespace = 'app\modules\adminapi\controllers';
    /**
     * @inheritdoc
     */
    public function init()
    {
        parent::init();

        \Yii::$app->urlManager->setBaseUrl(\Yii::$app->params['base_web_url']);
        \Yii::$app->user->enableSession = false;
        // custom initialization code goes here
    }
}
